import request from '../utils/request'

// 封装搜索列表列表的API
export const getSuggestListAPI = (kw) => {
  return request.get('/v1_0/suggestion', { params: { q: kw } })
}
// 封装搜索结果的API
export const getSearchResultAPI = (kw, page) => {
  return request.get('/v1_0/search', {
    params: {
      q: kw,
      page
    }
  })
}
